
#include <iostream>
#include <thread>
#include <mutex>
#include <string>
#include "p2p_client.h"

static uint16_t port = 18000;
std::string g_ip = "192.168.100.105";
int main()
{
	P2PClient p2p_client;

	if (!p2p_client.Connect(port, g_ip.c_str(), 1002, 5000)) {
		printf("p2p client connect failed. \n");
	}

	printf("over 1 \n");
	while (1)
	{
		p2p_client.GetOnLineList();
		std::this_thread::sleep_for(std::chrono::milliseconds(5000));
	}
	std::cout << "Hello World!\n";
}
